package io.geekidea.boot.noguaranteeorder.dto;

import io.geekidea.boot.common.GroupValidator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

    /**
     * 新增、修改保外订单子订单参数
     */
    @Data
    @Schema(description = "保外订单子订单")
    public class NoGuaranteeOrderDto implements Serializable {
        private static final long serialVersionUID = 1L;
        @Schema(description = "订单ID")
        @NotNull(groups = GroupValidator.Update.class,message = "公告编号不能为空")
        private Integer id;

        @Schema(description = "订单类型")
        @NotBlank(message = "保外单")
        private String type;

        @Schema(description = "子类型名称")
        @NotBlank(message = "子类型名称不能为空")
        private String name;

        @Schema(description = "单号开关")
        private String oddSwitch;


        @Schema(description = "厂家单号")
        private String oddNumber;


        @Schema(description = "状态")
        private String state;


    }

